#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
	int a[8] = { 28,50,44,53,66,49,80,63 }, i = 0, j = 0, k = 0, t = 0;
	for (i = 7; i >0; i--)
	{
		k = i;
		for (j = i -1; j>0; j--)
			if (a[k] > a[j])
				k = j;
		if (k != i)
		{
			t = a[i];
			a[i] = a[k];
			a[k] = t;
		}
	}
	for (i =7;i>0;i--)
		cout << a[i] << " ";
	cout << endl;
}